#ifndef __UTIL_NETINTF_INFO_H__
#define __UTIL_NETINTF_INFO_H__

#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdlib.h>
#include <errno.h>
#include <net/route.h>

#ifdef __cplusplus
extern "C"
{
#endif

    int netintf_get_status(const char *iface);
    int netintf_set_status(const char *iface, int up);
    int netintf_get_speed(const char *iface);
    int netintf_get_ip(char *intf, char *ip);
    int netintf_get_netmask(char *intf, char *netmask);
    int netintf_get_mac(char *intf, char *mac);
    int netintf_get_gateway(char *intf, char *gateway);
    int netintf_set_ip(char *intf, char *ip);
    int netintf_set_netmask(char *intf, char *netmask);
    int netintf_set_mac(char *intf, char *mac);
    int netintf_set_gateway(char *intf, char *gateway);

#ifdef __cplusplus
}
#endif

#endif /*__UTIL_NETINTF_INFO_H__*/
